package productmanagement;

public class Demo {
    public static void main(String[] args) {
        ProductManagement productManagement = new ProductManagement();
        Product product1 = new Product("001", "苹果");
        Product product2 = new Product("002", "橘子");
        productManagement.addProduct(product1);
        productManagement.addProduct(product2);

        productManagement.ShowAllProducts();
        System.out.println();
        System.out.println();

        System.out.println(productManagement.FindProductByid("001"));
        System.out.println();
        System.out.println();

        productManagement.removeProduct(product1);

        productManagement.ShowAllProducts();

    }
}
